import React from 'react'
import { DatePicker as AntDatePicker, DatePickerProps } from 'antd'
const DatePicker = (props: DatePickerProps) => {
  return (
    <AntDatePicker
      getPopupContainer={triggerNode => triggerNode.parentNode as HTMLElement}
      allowClear
      {...props}
    />
  )
}
export default DatePicker
